// Learn cc.Class:
//  - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
var CreatorHelper = require('CreatorHelper')
var ClickManager = require('ClickManager')

cc.Class({
    extends: cc.Component,

    properties: {
        btnNode: cc.Node
    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        CreatorHelper.setNodeClickEvent(this.btnNode, () => {
            ClickManager.exitLogin()
        })
    },

    start () {

    },

    // update (dt) {},
});
